#set(title="发起聚会")
#@layout()

#define body()
<div style="height: 50px"></div>
<div class="user-container">
    <div class="info-container">
        <form class="layui-form" action="">

            <div class="layui-form-item">
                <label class="layui-form-label">聚会名</label>
                <div class="layui-input-block">
                    <input type="text" name="partyname" autocomplete="off" required
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">聚会时间</label>
                <div class="layui-input-block">
                    <input type="text" name="partytime" autocomplete="off" required id="party-time"
                           class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">聚会地址</label>
                <div class="layui-input-block">
                    <input type="text" name="partyplace" autocomplete="off" required
                           class="layui-input">
                </div>
            </div>


            <input type="text" name="partyowner" value="#(user.username)" hidden>
            <input type="text" name="avator" value="default.jpg" hidden id="party-avator">

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="newpartySubmit">立即提交</button>
                </div>
            </div>

        </form>
    </div>

    <div class="avator-container">
        <img src="/img/partyimg/default.jpg" class="party-avator">
        <input name="avator" class="layui-upload-file" type="file">
    </div>

</div>
#end

#define css()
<link rel="stylesheet" href="/assets/css/user.css">
#end

#define js()
<script src="/assets/js/newParty.js"></script>
#end